if __name__ == '__main__':
    times = 0
    cont = 3
    while times <= 3:
        age = int(input("请输入年龄："))
        if age < 25:
            print("猜小了")
        elif age > 25:
            print("猜大了")
        elif age == 25:
            print("恭喜你猜对了！")
            break
        times += 1
        if times == 3:
            agen = input("是否继续？(y/n)：")
            if agen == "y":
                times = 0
            elif agen == "n":
                print("已退出")
